//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "Unit1.h"
#include "Unit2.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
	: TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TForm1::btnCheckClick(TObject *Sender)
{
if (this->edtUID->Text.ToInt()==00)
{
ShowMessage("Error, FAIL");
}
else if (this->edtUID->Text.ToInt()==10)
{
Form2->Visible=true;
btnPay->Enabled=true;
}
else
{
Form2->Visible=true;
btnEnter->Enabled=true;
}
}
//---------------------------------------------------------------------------

void __fastcall TForm1::btnEnterClick(TObject *Sender)
{
ShowMessage("SHUT UP AND GO TO THE EVENT");
}
//---------------------------------------------------------------------------

